package com.common.base;

import java.util.HashMap;
import java.util.Map;

/**
 * @类名 Constants
 * @描述 TODO 常量池
 * @版本 1.0
 * @创建人 lying
 * @创建时间 2020/6/19 18:23
 * @修改人 lying
 * @修改时间 2020/6/19 18:23
 **/
public class ConstantsPools {

    // 性别男
    public static final int MALE = 0;
    // 性别女
    public static final int FEMALE = 1;
    // 分页页码
    public static final String PAGE="page";
    // 分页每页数据条数
    public static final String PAGESIZE="pageSize";
    // ID
    public static final String  ID = "id";
    // 状态key
    public static final String STATUS = "status";
    // 描述key
    public static final String MESSAGE = "message";
    // 执行结果key
    public static final String SUCCESS = "success";

    public static final String CODE = "code";

    public static final String DATA = "data";


    public static final Map<Object, Object> CONSTANT_INFO = new HashMap<Object, Object>();
    static {
        CONSTANT_INFO.put(MALE,"男性");
        CONSTANT_INFO.put(FEMALE,"女性");
        CONSTANT_INFO.put(PAGE,"分页页码");
        CONSTANT_INFO.put(PAGESIZE,"分页每页数据条数");
        CONSTANT_INFO.put(ID,"数据唯一标识");
        CONSTANT_INFO.put(STATUS,"返回值状态key");
        CONSTANT_INFO.put(MESSAGE,"返回值描述key");
        CONSTANT_INFO.put(SUCCESS,"执行结果key");
        CONSTANT_INFO.put(CODE,"执行结果状态码key");
        CONSTANT_INFO.put(DATA,"执行结果");
    }

}
